package com.message;

import com.constant.MessageType;
import com.google.errorprone.annotations.NoAllocation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
public class ChatReqMessage extends DefaultMessage{
    /**
     * 发给哪一个用户
     */
    private String toUserName;

    /**
     * 消息的内容
     */
    private String chatContent;


    @Override
    public int getMessageType() {
        return MessageType.CHAT_REQUEST;
    }


    public ChatReqMessage() {
    }

    public ChatReqMessage(String toUserName, String chatContent) {
        this.toUserName = toUserName;
        this.chatContent = chatContent;
    }
}
